const swaggerJSDoc = require('swagger-jsdoc');

const swaggerDefinition = {
    info: {
      title: 'soccer API',
      version: '1.0.0',
      description: 'API',
    },
    basePath: '/api/v1',
    schemes: ['http'],
};

const options = {
  swaggerDefinition,
  apis: ['./app/routes/api_v1/*.js'], // 写有注解的router的存放地址
};

module.exports = swaggerJSDoc(options);
